You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

entities.cs 348 B

12345678910111213
  1. public string GetChannelTopic(ulong id)
  2. {
  3. var channel = client.GetChannel(81384956881809408) as SocketTextChannel;
  4. if (channel == null) return "";
  5. return channel.Topic;
  6. }
  7. public string GuildOwner(SocketChannel channel)
  8. {
  9. var guild = (channel as SocketGuildChannel)?.Guild;
  10. if (guild == null) return "";
  11. return Context.Guild.Owner.Username;
  12. }