.. V3 Bank

.. role:: python(code)
    :language: python

====
Bank
====

***********
Basic Usage
***********

.. code-block:: python

    from redbot.core import bank, commands
    import discord

    class MyCog(commands.Cog):
        @commands.command()
        async def balance(self, ctx, user: discord.Member = commands.Author):
            bal = await bank.get_balance(user)
            currency = await bank.get_currency_name(ctx.guild)
            await ctx.send(
                "{}'s balance is {} {}".format(
                    user.display_name, bal, currency
                )
            )

*************
API Reference
*************

Bank
======

.. automodule:: redbot.core.bank
    :members:
    :exclude-members: cost

    .. autofunction:: cost
        :decorator:
