@@ -141,7 +141,7 @@ async def register_commands(self) -> None:
141141 commands = []
142142
143143 registered_commands = await self .http .get_global_commands (self .user .id )
144- for command in [cmd for cmd in self .to_register if cmd .guild_ids is None ]:
144+ for command in [cmd for cmd in self .pending_application_commands if cmd .guild_ids is None ]:
145145 as_dict = command .to_dict ()
146146 if len (registered_commands ) > 0 :
147147 matches = [
@@ -157,7 +157,7 @@ async def register_commands(self) -> None:
157157 update_guild_commands = {}
158158 async for guild in self .fetch_guilds (limit = None ):
159159 update_guild_commands [guild .id ] = []
160- for command in [cmd for cmd in self .to_register if cmd .guild_ids is not None ]:
160+ for command in [cmd for cmd in self .pending_application_commands if cmd .guild_ids is not None ]:
161161 as_dict = command .to_dict ()
162162 for guild_id in command .guild_ids :
163163 to_update = update_guild_commands [guild_id ]
@@ -175,14 +175,14 @@ async def register_commands(self) -> None:
175175 raise
176176 else :
177177 for i in cmds :
178- cmd = get (self .to_register , name = i ["name" ], description = i ["description" ], type = i ['type' ])
178+ cmd = get (self .pending_application_commands , name = i ["name" ], description = i ["description" ], type = i ['type' ])
179179 self .application_commands [i ["id" ]] = cmd
180180
181181 cmds = await self .http .bulk_upsert_global_commands (self .user .id , commands )
182182
183183 for i in cmds :
184184 cmd = get (
185- self .to_register ,
185+ self .pending_application_commands ,
186186 name = i ["name" ],
187187 description = i ["description" ],
188188 type = i ["type" ],
0 commit comments