Skip to content

Commit 97483be

Browse files
committed
refactor: remove legacy naff references
rip
1 parent 2b42553 commit 97483be

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

interactions/models/discord/guild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ async def fetch_voice_regions(self) -> List["models.VoiceRegion"]:
19291929
"""
19301930
Fetches the voice regions for the guild.
19311931
1932-
Unlike the `NAFF.fetch_voice_regions` method, this will returns VIP servers when the guild is VIP-enabled.
1932+
Unlike the `Client.fetch_voice_regions` method, this will returns VIP servers when the guild is VIP-enabled.
19331933
19341934
Returns:
19351935
A list of voice regions.

interactions/models/discord/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ async def remove_reaction(
770770
771771
Args:
772772
emoji: Emoji to remove
773-
member: Member to remove reaction of. Default's to NAFF bot user.
773+
member: Member to remove reaction of. Default's to ClientUser.
774774
775775
"""
776776
emoji_str = process_emoji_req_format(emoji)

interactions/models/discord/user.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from interactions.models.discord.channel import DM, TYPE_GUILD_CHANNEL
3131
from interactions.models.discord.voice_state import VoiceState
3232

33-
__all__ = ("BaseUser", "User", "NaffUser", "Member")
33+
__all__ = ("BaseUser", "User", "ClientUser", "Member")
3434

3535

3636
class _SendDMMixin(SendMixin):
@@ -170,7 +170,7 @@ def member_instances(self) -> List["Member"]:
170170

171171

172172
@attrs.define(eq=False, order=False, hash=False, kw_only=True)
173-
class NaffUser(User):
173+
class ClientUser(User):
174174
verified: bool = attrs.field(repr=True, metadata={"docs": "Whether the email on this account has been verified"})
175175
mfa_enabled: bool = attrs.field(
176176
repr=False,

interactions/models/internal/command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ async def try_convert(self, converter: Optional[Callable], context: "BaseContext
183183
return await maybe_coroutine(converter, context, value)
184184

185185
def param_config(self, annotation: Any, name: str) -> Tuple[Callable, Optional[dict]]:
186-
# This thing is complicated. NAFF-annotations can either be annotated directly, or they can be annotated with Annotated[str, CMD_*]
186+
# This thing is complicated. i.py-annotations can either be annotated directly, or they can be annotated with Annotated[str, CMD_*]
187187
# This helper function handles both cases, and returns a tuple of the converter and its config (if any)
188188
if annotation is None:
189189
return None

0 commit comments

Comments
 (0)