Fix minor issue from merge
This commit is contained in:
parent
6c73e0df48
commit
bcba51ed97
1 changed files with 105 additions and 108 deletions
|
@ -137,7 +137,6 @@ class PinboardCog(Extension):
|
||||||
message: str,
|
message: str,
|
||||||
channel: GuildText = None,
|
channel: GuildText = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
try:
|
|
||||||
if not channel:
|
if not channel:
|
||||||
channel = ctx.channel
|
channel = ctx.channel
|
||||||
pinboards = await Pinboard.find(Pinboard.guild == ctx.guild.id).to_list()
|
pinboards = await Pinboard.find(Pinboard.guild == ctx.guild.id).to_list()
|
||||||
|
@ -181,9 +180,7 @@ class PinboardCog(Extension):
|
||||||
select_channels = []
|
select_channels = []
|
||||||
for idx, x in enumerate(channel_list):
|
for idx, x in enumerate(channel_list):
|
||||||
if x:
|
if x:
|
||||||
select_channels.append(
|
select_channels.append(StringSelectOption(label=x.name, value=str(idx)))
|
||||||
StringSelectOption(label=x.name, value=str(idx))
|
|
||||||
)
|
|
||||||
|
|
||||||
select_channels = [
|
select_channels = [
|
||||||
StringSelectOption(label=x.name, value=str(idx))
|
StringSelectOption(label=x.name, value=str(idx))
|
||||||
|
|
Loading…
Add table
Reference in a new issue