Allow configuring the starboard name
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
All checks were successful
Build and Publish Jimmy.2 / build_and_publish (push) Successful in 6s
This commit is contained in:
parent
0661656a22
commit
b7ad0bcd75
2 changed files with 2 additions and 1 deletions
|
@ -87,3 +87,4 @@ ip_servers = [
|
|||
enabled = false # disables starboard entirely
|
||||
emoji = "⭐" # the emoji to use. Defaults to the plain star.
|
||||
whitelist = [994710566612500550] # An array of server IDs to whitelist. Omitted means all servers.
|
||||
channel_name = "starboard" # the channel name to search for. Globally, not per-server.
|
||||
|
|
|
@ -133,7 +133,7 @@ class Starboard(commands.Cog):
|
|||
guild: discord.Guild = self.bot.get_guild(payload.guild_id)
|
||||
starboard_channel: discord.TextChannel | None = discord.utils.get(
|
||||
guild.text_channels,
|
||||
name="starboard"
|
||||
name=self.config.get("channel_name", "starboard")
|
||||
)
|
||||
if not starboard_channel:
|
||||
self.log.warning("Could not find starboard channel in %s (%d)", guild, guild.id)
|
||||
|
|
Loading…
Reference in a new issue