update to latest commit for pycord, fix math on filesize calculation, create a text channel when running /vc
This commit is contained in:
parent
3e3c634b80
commit
36ddf71d27
@ -149,7 +149,7 @@ class ServerUtils(commands.Cog):
|
||||
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 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(
|
||||
name="You've been a member of this server since:",
|
||||
@ -203,7 +203,7 @@ class ServerUtils(commands.Cog):
|
||||
|
||||
@commands.slash_command(
|
||||
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)
|
||||
async def vc(self, ctx: commands.Context, channel_role_name):
|
||||
@ -232,6 +232,9 @@ class ServerUtils(commands.Cog):
|
||||
await ctx.guild.create_voice_channel(
|
||||
name=channel_role_name, bitrate=96000, overwrites=overwrites
|
||||
)
|
||||
await ctx.guild.create_text_channel(
|
||||
name=channel_role_name, overwrites=overwrites
|
||||
)
|
||||
|
||||
await ctx.respond(
|
||||
":white_check_mark: Created a role + voice channel for %s"
|
||||
|
@ -1,6 +1,6 @@
|
||||
beautifulsoup4
|
||||
cmagick
|
||||
git+https://github.com/pycord-development/pycord@f8b4294ff06e0f700bcfe8c0ec13d0ec0085c7dd
|
||||
git+https://github.com/pycord-development/pycord@fa0f16030eba9c2b708419a89d57f1d33882659c
|
||||
gTTS
|
||||
httpx
|
||||
humanfriendly
|
||||
|
Loading…
x
Reference in New Issue
Block a user