mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Docs] Fix imports in Config (#1015)
This commit is contained in:
parent
4ddd576315
commit
d9a63b45d4
@ -17,7 +17,7 @@ Basic Usage
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from core import Config
|
from redbot.core import Config
|
||||||
|
|
||||||
class MyCog:
|
class MyCog:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -43,7 +43,7 @@ First, you need to import Config:
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from core import Config
|
from redbot.core import Config
|
||||||
|
|
||||||
Then, in the class's :code:`__init__` function, you need to get a config instance:
|
Then, in the class's :code:`__init__` function, you need to get a config instance:
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user