id -> index, closes #75
This commit is contained in:
parent
26a8883290
commit
31a4894fdf
1 changed files with 4 additions and 4 deletions
|
@ -1,12 +1,12 @@
|
||||||
from discord import TextChannel
|
from discord import TextChannel
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
from discord_slash import SlashContext, cog_ext
|
||||||
|
from discord_slash.utils.manage_commands import create_option
|
||||||
|
|
||||||
from jarvis.db.types import Star, Starboard
|
from jarvis.db.types import Star, Starboard
|
||||||
from jarvis.utils import build_embed
|
from jarvis.utils import build_embed
|
||||||
from jarvis.utils.permissions import admin_or_permissions
|
from jarvis.utils.permissions import admin_or_permissions
|
||||||
|
|
||||||
from discord_slash import SlashContext, cog_ext
|
|
||||||
from discord_slash.utils.manage_commands import create_option
|
|
||||||
|
|
||||||
supported_images = [
|
supported_images = [
|
||||||
"image/png",
|
"image/png",
|
||||||
"image/gif",
|
"image/gif",
|
||||||
|
@ -257,7 +257,7 @@ class StarboardCog(commands.Cog):
|
||||||
|
|
||||||
star = Star.get(
|
star = Star.get(
|
||||||
starboard=starboard.id,
|
starboard=starboard.id,
|
||||||
id=id,
|
index=id,
|
||||||
guild=ctx.guild.id,
|
guild=ctx.guild.id,
|
||||||
active=True,
|
active=True,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue