Fix setting guild prefixes when the prefixes aren't in cache (#3897)

This commit is contained in:
Neuro Assassin 2020-06-01 21:02:35 -04:00 committed by GitHub
parent dbcb179523
commit bc21f77976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ class PrefixManager:
self._cached.clear() self._cached.clear()
await self._config.prefix.set(prefixes) await self._config.prefix.set(prefixes)
else: else:
del self._cached[gid] self._cached.pop(gid, None)
await self._config.guild_from_id(gid).prefix.set(prefixes) await self._config.guild_from_id(gid).prefix.set(prefixes)