discordid: make function names more explicit
These are fairly wordy but help maintain correctness. A channel portal ID should not be confused with a guild portal ID.
This commit is contained in:
@@ -37,7 +37,7 @@ func (dc *DiscordClient) FetchMessages(ctx context.Context, fetchParams bridgev2
|
||||
return nil, bridgev2.ErrNotLoggedIn
|
||||
}
|
||||
|
||||
channelID := discordid.ParsePortalID(fetchParams.Portal.ID)
|
||||
channelID := discordid.ParseChannelPortalID(fetchParams.Portal.ID)
|
||||
log := zerolog.Ctx(ctx).With().
|
||||
Str("action", "fetch messages").
|
||||
Str("channel_id", channelID).
|
||||
|
||||
Reference in New Issue
Block a user