update to latest commit for pycord, fix math on filesize calculation, create a text channel when running /vc
This commit is contained in:
parent
fc8a8ec9fe
commit
4e0a178873
@ -149,7 +149,7 @@ class ServerUtils(commands.Cog):
|
|||||||
embed.add_field(name="Number of members", value=f"{server.member_count}")
|
embed.add_field(name="Number of members", value=f"{server.member_count}")
|
||||||
embed.add_field(name="Server ID", value=f"{server.id}")
|
embed.add_field(name="Server ID", value=f"{server.id}")
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="Server upload size limit", value=f"{server.filesize_limit/1024}mb"
|
name="Server upload size limit", value=f"{server.filesize_limit/125000}mb"
|
||||||
)
|
)
|
||||||
embed.add_field(
|
embed.add_field(
|
||||||
name="You've been a member of this server since:",
|
name="You've been a member of this server since:",
|
||||||
@ -203,7 +203,7 @@ class ServerUtils(commands.Cog):
|
|||||||
|
|
||||||
@commands.slash_command(
|
@commands.slash_command(
|
||||||
name="vc",
|
name="vc",
|
||||||
description="Creates a role and voice channel of the same name",
|
description="Creates a role, text, and voice channel of the same name",
|
||||||
)
|
)
|
||||||
@commands.has_permissions(administrator=True)
|
@commands.has_permissions(administrator=True)
|
||||||
async def vc(self, ctx: commands.Context, channel_role_name):
|
async def vc(self, ctx: commands.Context, channel_role_name):
|
||||||
@ -232,6 +232,9 @@ class ServerUtils(commands.Cog):
|
|||||||
await ctx.guild.create_voice_channel(
|
await ctx.guild.create_voice_channel(
|
||||||
name=channel_role_name, bitrate=96000, overwrites=overwrites
|
name=channel_role_name, bitrate=96000, overwrites=overwrites
|
||||||
)
|
)
|
||||||
|
await ctx.guild.create_text_channel(
|
||||||
|
name=channel_role_name, overwrites=overwrites
|
||||||
|
)
|
||||||
|
|
||||||
await ctx.respond(
|
await ctx.respond(
|
||||||
":white_check_mark: Created a role + voice channel for %s"
|
":white_check_mark: Created a role + voice channel for %s"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
cmagick
|
cmagick
|
||||||
git+https://github.com/pycord-development/pycord@f8b4294ff06e0f700bcfe8c0ec13d0ec0085c7dd
|
git+https://github.com/pycord-development/pycord@fa0f16030eba9c2b708419a89d57f1d33882659c
|
||||||
gTTS
|
gTTS
|
||||||
httpx
|
httpx
|
||||||
humanfriendly
|
humanfriendly
|
||||||
|
Loading…
x
Reference in New Issue
Block a user