Skip to content

Commit

Permalink
Undo accidental rename
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Jan 5, 2024
1 parent 588aebf commit 83eea28
Show file tree
Hide file tree
Showing 20 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion examples/gateway/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
bot = hikari.GatewayBot("...")

# Initialize arc with the bot:
client = arc.GatewayClientBase(bot)
client = arc.GatewayClient(bot)


@client.include # Add command to client
Expand Down
2 changes: 1 addition & 1 deletion examples/gateway/context_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/context_menu

bot = hikari.GatewayBot("...")
client = arc.GatewayClientBase(bot)
client = arc.GatewayClient(bot)

# Context-menu commands cannot be put in groups, and do not support options.
# Note that you can only define a MAXIMUM of 5 user and 5 message commands per bot.
Expand Down
2 changes: 1 addition & 1 deletion examples/gateway/dependency_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self, value: int) -> None:
self.value = value

bot = hikari.GatewayBot("...")
client = arc.GatewayClientBase(bot)
client = arc.GatewayClient(bot)

# Create a new instance of 'MyDatabase'
database = MyDatabase(value=0)
Expand Down
2 changes: 1 addition & 1 deletion examples/gateway/error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/error_handling

bot = hikari.GatewayBot("...")
client = arc.GatewayClientBase(bot)
client = arc.GatewayClient(bot)

@client.include
@arc.slash_command("name", "description")
Expand Down
2 changes: 1 addition & 1 deletion examples/gateway/extension_example/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/plugin_extensions

bot = hikari.GatewayBot("...")
client = arc.GatewayClientBase(bot)
client = arc.GatewayClient(bot)

# Load all extensions located in the 'extensions' directory
client.load_extensions_from("extensions")
Expand Down
4 changes: 2 additions & 2 deletions examples/gateway/extension_example/extensions/bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ async def bar_cmd(
# This will be called when the extension is loaded
# A loader must be present for the extension to be valid
@arc.loader
def loader(client: arc.GatewayClientBase) -> None:
def loader(client: arc.GatewayClient) -> None:
client.add_plugin(plugin)

# And this will be called when the extension is unloaded
# Including this is optional, but if not present, the extension cannot be unloaded
@arc.unloader
def unloader(client: arc.GatewayClientBase) -> None:
def unloader(client: arc.GatewayClient) -> None:
client.remove_plugin(plugin)
4 changes: 2 additions & 2 deletions examples/gateway/extension_example/extensions/foo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ async def foo_cmd(
# This will be called when the extension is loaded
# A loader must be present for the extension to be valid
@arc.loader
def loader(client: arc.GatewayClientBase) -> None:
def loader(client: arc.GatewayClient) -> None:
client.add_plugin(plugin)

# And this will be called when the extension is unloaded
# Including this is optional, but if not present, the extension cannot be unloaded
@arc.unloader
def unloader(client: arc.GatewayClientBase) -> None:
def unloader(client: arc.GatewayClient) -> None:
client.remove_plugin(plugin)
2 changes: 1 addition & 1 deletion examples/gateway/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/hooks

bot = hikari.GatewayBot("...")
client = arc.GatewayClientBase(bot)
client = arc.GatewayClient(bot)

# Any function that takes a context as its first argument
# and returns None or HookResult is a valid hook
Expand Down
2 changes: 1 addition & 1 deletion examples/gateway/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

bot = hikari.GatewayBot("...")
# Set the locales that the client will request in the provider callbacks.
client = arc.GatewayClientBase(bot, provided_locales=[hikari.Locale.EN_US, hikari.Locale.ES_ES])
client = arc.GatewayClient(bot, provided_locales=[hikari.Locale.EN_US, hikari.Locale.ES_ES])

# These are just examples, you can provide localizations from anywhere you want.
COMMAND_LOCALES = {
Expand Down
4 changes: 2 additions & 2 deletions examples/gateway/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/options

bot = hikari.GatewayBot("...")
client = arc.GatewayClientBase(bot)
client = arc.GatewayClient(bot)


@client.include
Expand Down Expand Up @@ -42,7 +42,7 @@ async def all_the_options(

# Define an autocompletion callback
# This can either return a list of the option type, or a list of hikari.CommandChoice
async def provide_opts(data: arc.AutocompleteData[arc.GatewayClientBase, str]) -> list[str]:
async def provide_opts(data: arc.AutocompleteData[arc.GatewayClient, str]) -> list[str]:
if data.focused_value and len(data.focused_value) > 20:
return ["That", "is", "so", "long!"]
return ["Short", "is", "better!"]
Expand Down
2 changes: 1 addition & 1 deletion examples/rest/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
bot = hikari.RESTBot("...")

# Initialize arc with the bot:
client = arc.RESTClientBase(bot)
client = arc.RESTClient(bot)


@client.include # Add command to client
Expand Down
2 changes: 1 addition & 1 deletion examples/rest/context_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/context_menu

bot = hikari.RESTBot("...")
client = arc.RESTClientBase(bot)
client = arc.RESTClient(bot)

# Context-menu commands cannot be put in groups, and do not support options.
# Note that you can only define a MAXIMUM of 5 user and 5 message commands per bot.
Expand Down
2 changes: 1 addition & 1 deletion examples/rest/dependency_injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def __init__(self, value: int) -> None:
self.value = value

bot = hikari.RESTBot("...")
client = arc.RESTClientBase(bot)
client = arc.RESTClient(bot)

# Create a new instance of 'MyDatabase'
database = MyDatabase(value=0)
Expand Down
2 changes: 1 addition & 1 deletion examples/rest/error_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/error_handling

bot = hikari.RESTBot("...")
client = arc.RESTClientBase(bot)
client = arc.RESTClient(bot)

@client.include
@arc.slash_command("name", "description")
Expand Down
2 changes: 1 addition & 1 deletion examples/rest/extension_example/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/plugin_extensions

bot = hikari.RESTBot("...")
client = arc.RESTClientBase(bot)
client = arc.RESTClient(bot)

# Load all extensions located in the 'extensions' directory
client.load_extensions_from("extensions")
Expand Down
4 changes: 2 additions & 2 deletions examples/rest/extension_example/extensions/bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ async def bar_cmd(
# This will be called when the extension is loaded
# A loader must be present for the extension to be valid
@arc.loader
def loader(client: arc.RESTClientBase) -> None:
def loader(client: arc.RESTClient) -> None:
client.add_plugin(plugin)

# And this will be called when the extension is unloaded
# Including this is optional, but if not present, the extension cannot be unloaded
@arc.unloader
def unloader(client: arc.RESTClientBase) -> None:
def unloader(client: arc.RESTClient) -> None:
client.remove_plugin(plugin)
4 changes: 2 additions & 2 deletions examples/rest/extension_example/extensions/foo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ async def foo_cmd(
# This will be called when the extension is loaded
# A loader must be present for the extension to be valid
@arc.loader
def loader(client: arc.RESTClientBase) -> None:
def loader(client: arc.RESTClient) -> None:
client.add_plugin(plugin)

# And this will be called when the extension is unloaded
# Including this is optional, but if not present, the extension cannot be unloaded
@arc.unloader
def unloader(client: arc.RESTClientBase) -> None:
def unloader(client: arc.RESTClient) -> None:
client.remove_plugin(plugin)
2 changes: 1 addition & 1 deletion examples/rest/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/hooks

bot = hikari.RESTBot("...")
client = arc.RESTClientBase(bot)
client = arc.RESTClient(bot)

# Any function that takes a context as its first argument
# and returns None or HookResult is a valid hook
Expand Down
2 changes: 1 addition & 1 deletion examples/rest/localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

bot = hikari.RESTBot("...")
# Set the locales that the client will request in the provider callbacks.
client = arc.RESTClientBase(bot, provided_locales=[hikari.Locale.EN_US, hikari.Locale.ES_ES])
client = arc.RESTClient(bot, provided_locales=[hikari.Locale.EN_US, hikari.Locale.ES_ES])

# These are just examples, you can provide localizations from anywhere you want.
COMMAND_LOCALES = {
Expand Down
4 changes: 2 additions & 2 deletions examples/rest/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Related documentation guide: https://arc.hypergonial.com/guides/options

bot = hikari.RESTBot("...")
client = arc.RESTClientBase(bot)
client = arc.RESTClient(bot)


@client.include
Expand Down Expand Up @@ -42,7 +42,7 @@ async def all_the_options(

# Define an autocompletion callback
# This can either return a list of the option type, or a list of hikari.CommandChoice
async def provide_opts(data: arc.AutocompleteData[arc.RESTClientBase, str]) -> list[str]:
async def provide_opts(data: arc.AutocompleteData[arc.RESTClient, str]) -> list[str]:
if data.focused_value and len(data.focused_value) > 20:
return ["That", "is", "so", "long!"]
return ["Short", "is", "better!"]
Expand Down

0 comments on commit 83eea28

Please sign in to comment.