0.options
# Do API requests and cache
if update_required:
try:
to_send = diff["no_changes"] + diff["edit"] + diff["upsert"]
await self.bulk_overwrite_guild_commands(guild_id, to_send)
except Exception as e:
warnings.warn(
f"Failed to overwrite commands in <Guild id={guild_id}> due to {e}",
SyncWarning,
)