Remove config param from record_event_points().
This commit is contained in:
@@ -118,7 +118,6 @@ class RecordCog(commands.Cog, name="Record Commands"):
|
||||
return
|
||||
elif recipient is not None: # noqa: RET505
|
||||
record_event_points(
|
||||
self.bot.config,
|
||||
[str(recipient.id)],
|
||||
self.bot.config.params.event_participate_points,
|
||||
is_member=True,
|
||||
@@ -126,7 +125,6 @@ class RecordCog(commands.Cog, name="Record Commands"):
|
||||
recipient_str = f"<@{recipient.id}>"
|
||||
elif non_discord_recipient is not None:
|
||||
record_event_points(
|
||||
self.bot.config,
|
||||
[non_discord_recipient],
|
||||
self.bot.config.params.event_participate_points,
|
||||
is_member=False,
|
||||
@@ -189,7 +187,6 @@ class EventView(nextcord.ui.View):
|
||||
if discord_users:
|
||||
discord_users_list: list[str] = [str(user.id) for user in discord_users if user.id is not self.host_id]
|
||||
record_event_points(
|
||||
self.config,
|
||||
discord_users_list,
|
||||
self.config.params.event_participate_points,
|
||||
is_member=True,
|
||||
@@ -199,13 +196,12 @@ class EventView(nextcord.ui.View):
|
||||
if non_discord_users:
|
||||
non_discord_users_list: list[str] = non_discord_users.split("\n")
|
||||
record_event_points(
|
||||
self.config,
|
||||
non_discord_users_list,
|
||||
self.config.params.event_participate_points,
|
||||
is_member=False,
|
||||
)
|
||||
|
||||
record_event_points(self.config, [self.host_id], self.config.params.event_host_points, is_member=True)
|
||||
record_event_points([self.host_id], self.config.params.event_host_points, is_member=True)
|
||||
|
||||
event_channel: nextcord.TextChannel = interaction.guild.get_channel(self.config.params.event_post_channel_id)
|
||||
await event_channel.send(embed=interaction.message.embeds[0])
|
||||
|
||||
Reference in New Issue
Block a user