Discord.py Differences¶
guilded.py was designed with discord.py compatibility in mind; You shouldn’t have to rewrite your bot to make it Guilded-ready. The libraries are not identical, though–here are some notable differences.
These lists are not exhaustive.
Breaking¶
Below is a list of “breaking” differences between discord.py and guilded.py; If you use any of the below methods, attributes, or parameters, you must change your code in order for your bot to work with this library.
Modified¶
Guilded/Discord API differences
All
.ids are strings or non-snowflake integers.Webhook.fetch(),Webhook.edit(),Webhook.delete(),WebhookMessage.delete(),Webhook.delete_message(), andWebhook.fetch_message()require the webhook instance to have authentication info associated with it as webhooks cannot perform these actions on their own.Server.webhooks()cannot fetch the required information in a single request, so it makes multiple for each compatible channel.Webhook.fetch(),Webhook.edit(), andWebhook.delete()requireWebhook.server_idto be filled or for you to provide theserverparameter to the respective method.Client.fetch_invite()does not accept URLs or vanity codes.Client.fetch_servers()returns a list ofServerinstead of an async iterator.Server.fetch_channel()does not accept category IDs. UseServer.fetch_category()instead.
Not present¶
Methods
Client.add_viewClient.application_infoClient.before_identify_hookClient.change_presenceClient.create_dmClient.create_guild(create_server)Client.delete_inviteClient.fetch_guildsClient.fetch_premium_sticker_packsClient.fetch_stage_instanceClient.fetch_stickerClient.fetch_templateClient.fetch_webhookClient.fetch_widgetClient.get_partial_messageableClient.get_stage_instanceClient.get_stickerClient.is_ws_ratelimitedGuild.editGuild.deleteCategory.cloneCategory.invitesCategory.moveCategory.overwrites_forCategory.permissions_forCategory.set_permissions
Parameters
Server.create_webhook(),ChatChannel.create_webhook(),ListChannel.create_webhook():avatar,reason
Classes
Clients:
Application Info:
Webhooks:
Abstract Base Classes:
Models:
AutoMod
Data Classes:
All of
ui.*All of
app_commands.*
Non-breaking¶
Below is a list of non-“breaking” differences between discord.py and guilded.py; You will be able to use guilded.py without complying with any of the below changes. This list is not exhaustive.
The
on_webhooks_updateevent does not exist; Useguilded.on_webhook_create()andguilded.on_raw_webhook_update()/guilded.on_webhook_update()instead.