A
A
assbeater4202021-01-21 19:51:20
Python
assbeater420, 2021-01-21 19:51:20

How to insert the id of the server on which the command is written in the discord bot?

import discord
from discord.ext import commands
import asyncio
Bot = commands.Bot(command_prefix='=') #префикс
token = '??'# токен
id = айди_сервера_на_котором_выполнена_команда  # ID сервера

How to make the id =id of the server where the command is written automatically displayed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Nevzorov, 2021-01-21
@assbeater420

context.Guild

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question